<?php /* Smarty version Smarty-3.1.8, created on 2017-01-22 16:28:11
         compiled from "C:/Users/sunyang/Documents/wine9/pwine/app/sy/view/ecnews.com\default\default.html" */ ?>
<?php /*%%SmartyHeaderCode:3246258842a97af8e22-65703076%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '96993e00883d6d49ae0a55b42a6659015e0b9471' => 
    array (
      0 => 'C:/Users/sunyang/Documents/wine9/pwine/app/sy/view/ecnews.com\\default\\default.html',
      1 => 1485073689,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '3246258842a97af8e22-65703076',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_58842a97cc4bd0_96836380',
  'variables' => 
  array (
    'swfurl' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_58842a97cc4bd0_96836380')) {function content_58842a97cc4bd0_96836380($_smarty_tpl) {?><!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <link type="text/css" rel="stylesheet" href="http://ecnews.com/public/plug/swfupload/css/default.css"/>
    <script type="text/javascript" charset="utf-8" src="http://ecnews.com/public/plug/swfupload/swfupload.js"></script>
    <script type="text/javascript" charset="utf-8" src="http://ecnews.com/public/plug/swfupload/swfupload.queue.js"></script>
    <script type="text/javascript" charset="utf-8" src="http://ecnews.com/public/plug/swfupload/js/handlers.js"></script>
    <script type="text/javascript" charset="utf-8" src="http://ecnews.com/public/js/jquery-1.7.2.min.js"></script>



    <script>
        var swfurl = '<?php echo $_smarty_tpl->tpl_vars['swfurl']->value;?>
';
    </script>
    
    <script>
        var swfu;
        window.onload = function () {
            swfu = new SWFUpload({
                upload_url: "http://ecnews.com/index.php/default/upload",
                post_params: {"name" : "file"},
                use_query_string:true,//这块必须设置，要不然在后台处理的时候是没法获得name的值的
                // File Upload Settings
                file_size_limit : "10 MB",	// 文件大小控制
                file_types : "*.*",
                file_types_description : "All Files",
                file_upload_limit : "0",

                file_queue_error_handler : fileQueueError,
                file_dialog_complete_handler : fileDialogComplete,//选择好文件后提交
                file_queued_handler : fileQueued,
                upload_progress_handler : uploadProgress,
                upload_error_handler : uploadError,
                upload_success_handler : uploadSuccess,
                upload_complete_handler : uploadComplete,
                button_placeholder_id : "spanButtonPlaceholder",
                button_width: 180,
                button_height: 18,
                button_text : '<span class="button">请选择文件 </span>',
                button_text_style : '.button { font-family: Helvetica, Arial, sans-serif; font-size: 12pt; } .buttonSmall { font-size: 10pt; }',
                button_text_top_padding: 0,
                button_text_left_padding: 18,
                button_window_mode: SWFUpload.WINDOW_MODE.TRANSPARENT,
                button_cursor: SWFUpload.CURSOR.HAND,

                // Flash Settings
                flash_url : swfurl,

                custom_settings : {
                    upload_target : "divFileProgressContainer"
                },
                // Debug Settings
                debug: false  //是否显示调试窗口
            });
        };
        function uploadSuccess(file, return_data){
            file_data = eval("("+return_data+")");
            if(file_data.status==1){
                $('#divFileProgressContainer').append('<li ectype="handle_pic" file_id="'+ file_data.file_id +'" thumbnail_1 ="'+ file_data.thumbnail+'"   thumbnail="'+ file_data.thumbnail +'"><input type="hidden" value="'+ file_data.file_id +'" name="goods_file_id[]"/><div class="pic"><img src="'+ file_data.thumbnail +'" width="55" height="55" alt="" /><div ectype="handler" class="bg"><p class="operation"><span class="cut_in" ectype="set_cover" ecm_title="set_cover"></span><span class="delete" ectype="drop_image" ecm_title="删除"></span></p></div></div></li>');
            }else{

            }
        }

    </script>
    
</head>

<body>
<div action="" method="post" enctype="multipart/form-data" id="content">
    <form>
        <div style="display: inline; border: solid 1px #7FAAFF; background-color: #C5D9FF; padding: 2px;">
            <span id="spanButtonPlaceholder"></span>
            <input id="btnUpload" type="button" value="上  传" onclick="startUploadFile();" class="btn3_mouseout"/>
        </div>
    </form>
    <div id="divFileProgressContainer"></div>
    <div id="thumbnails">
        <table id="infoTable" border="0" width="530" style="display: inline; border: solid 1px #7FAAFF; background-color: #C5D9FF; padding: 2px;margin-top:8px;">
        </table>
    </div>
</div>
<!--<form id="form1"action=""method="post"enctype="multipart/form-data">
<p></p>
<div class="fieldsetflash"id="fsUploadProgress">
<span class="legend">上传文件列表</span>
</div>
<div id="divMovieContainer">
<input id="filenamelist"type="hidden"name="filenamelist"/>
<span id="spanButtonPlaceHolder"></span>
<input type="button"value="上传"onclick="upload();"style="margin-left:2px;font-size:8pt;height:29px;"/>
<input type="button"value="停止"onclick="stop();"style="display:none;margin-left:2px;font-size:8pt;height:29px;"/>
<input id="btnCancel"type="button"value="取消所有"onclick="swfUpload.cancelQueue();"disabled="disabled"style="margin-left:2px;font-size:8pt;height:29px;"/>
<input type="button"onclick="javaScript:window.close();"name="bt"style="margin-left:2px;font-size:8pt;height:29px;"value="关闭"/>
</div>
</form>-->
</body>
</html><?php }} ?>